package main

import (
	"flag"
	"fmt"

	"github.com/chatroom/core"
)

func main() {
	var port int
	var multicore bool

	// Example command: go run server.go --port 8888 --multicore=true
	flag.IntVar(&port, "port", 8888, "server port")
	flag.BoolVar(&multicore, "multicore", true, "multicore")
	flag.Parse()
	addr := fmt.Sprintf("tcp://:%d", port)
	// customCodecServe(addr, multicore, true, nil)
	core.NewCustomCodecServer(addr, multicore, false)
}
